package cn.jbit.shoppingcart.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.jbit.pojo.commodity;
/**
 * 购物车service层
 * @author _Cpxy
 *
 */
public interface ShoppingCartService {

	/* 查询购物车商品 */
	public List<commodity>  showCommodit();
	
	/* 添加购物车商品 */
	public void addCommodit(@Param("commoditId")int commoditId,@Param("userId")int userId,@Param("count")int count);

	/* 删除购物车商品 */
	public void deleteCommodit(int id);
	
	/* 清空购物车商品 */
	public void clearCommodit();
	
	/*计算购物车商品总价*/
	public Double getTotalPrice(double money,double num);
}
